[Iphone-Dev] Assigning values : difference between properties and class variables ?
Posted
by gotye
on Stack Overflow
See other posts from Stack Overflow
or by gotye
Published on 2010-03-22T09:11:50Z
Indexed on
2010/03/22
9:21 UTC
Read the original article
Hit count: 320
Hey guys,
I noticed that I rarely use properties, due to the fact that I rarely need to access my object's variables outside my class ;)
So I usually do :
NSMutableArray *myArray; // not a property !
My question is : even if i don't declare myArray as a property, does iphone make a retain anyway if I do
myArray = arrayPassedToMe;
I think so but I just wanted to confirm ;)
Any thoughts welcome !
Gotye
© Stack Overflow or respective owner